package com.biglead.mini.service;

import com.biglead.mini.pojo.CartPromotionItem;
import com.biglead.mini.pojo.OmsCartItem;

import java.util.List;

public interface OmsCartItemService {
    boolean add(OmsCartItem cartItem, Long userId);

    List<OmsCartItem> list(Long userId);

    List<CartPromotionItem> listPromotion(Long userId, List<Long> cartIds);

    boolean updateQuantity(Long id, Long userId, Integer quantity);

    boolean clear(Long userId);

    boolean delete(Long userId, List<Long> ids);
}
